﻿<Window x:Class="SDF.Test.Test"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:s="http://sdf.codeplex.com/"
        Title="Test" Height="350" Width="319" Loaded="Window_Loaded">
    <!--<Grid>
        <s:SmartDocumentViewer Padding="21">
            <s:SmartDocument>
                <s:Section Background="Green" Margin="0,8,0,8">
                    <s:Paragraph Background="Pink" Margin="8,16,8,16">
                        <s:TextRun Text="just fine!" />
                    </s:Paragraph>
                    <s:Paragraph Background="LightSkyBlue" Margin="16,0,0,0">
                        <s:Span Background="Orange">
                            Hi!
                            <s:Span Background="Yellow">
                                <s:TextRun Text="       Hello" />
                            </s:Span>
                            world!
                    </s:Span>
                    </s:Paragraph>
                    <s:Paragraph Background="Red" Margin="16,NaN,16,16">
                        Hello 
                        <s:LineBreak />
                        world!
                        <s:LineBreak />
                </s:Paragraph>
                </s:Section>
                <s:Section Background="Orange">
                    <s:Paragraph Background="Blue" Margin="8,NaN,8,16">
                        <s:TextRun Text="Hello world!" />
                    </s:Paragraph>
                    <s:Paragraph Background="Red" Margin="8,16,8,8">
                        <s:TextRun Text="Hello world!" />
                    </s:Paragraph>
                </s:Section>
            </s:SmartDocument>
    </s:SmartDocumentViewer>
    </Grid>-->
    <ScrollViewer HorizontalScrollBarVisibility="Visible">
        <Grid Background="Yellow">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition  />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
        
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <!-- This TableRowGroup hosts a header row for the table. -->
            <TextBlock Grid.Column="0" Grid.Row="0"></TextBlock>
            <TextBlock Grid.Column="1" Grid.Row="0">Gizmos</TextBlock>
            <TextBlock Grid.Column="2" Grid.Row="0">Thingamajigs</TextBlock>
            <TextBlock Grid.Column="3" Grid.Row="0">Doohickies</TextBlock>
        
            <TextBlock Grid.Column="0" Grid.Row="1">Blue</TextBlock>
            <TextBlock Grid.Column="1" Grid.Row="1">1</TextBlock>
            <TextBlock Grid.Column="2" Grid.Row="1">2</TextBlock>
            <TextBlock Grid.Column="3" Grid.Row="1">3</TextBlock>
        </Grid>
    </ScrollViewer>            
</Window>
